package com.dy.design_pattern_study.observer_mode.dome3.notifier_code.impl;

import com.dy.design_pattern_study.observer_mode.dome3.notifier_code.Subject;
import com.dy.design_pattern_study.observer_mode.dome3.observer_code.Observer;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-03
 * @Content 具体主题或具体通知者，将有关状态存入具体观察者对象；
 * 在具体主题的内部状态改变时，给所有登记过的观察者发出通知
 */
public class ConcreteSubject extends Subject {

    private String subjectState;

    public String getSubjectState(){
        return subjectState;
    }

    public String setSubjectState(String value){
        return subjectState = value;
    }

}
